.class Lcom/instagram/android/creation/b/p;
.super Lcom/instagram/android/support/camera/b;
.source "CameraFragment.java"


# instance fields
.field final synthetic a:Lcom/instagram/android/creation/b/a;


# direct methods
.method public constructor <init>(Lcom/instagram/android/creation/b/a;Landroid/content/Context;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1433
    iput-object p1, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    .line 1434
    invoke-direct {p0, p2}, Lcom/instagram/android/support/camera/b;-><init>(Landroid/content/Context;)V

    .line 1435
    return-void
.end method


# virtual methods
.method public a(F)V
    .locals 4
    .parameter

    .prologue
    const/high16 v3, 0x43b4

    .line 1444
    const/high16 v0, -0x4080

    cmpl-float v0, p1, v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    if-nez v0, :cond_2

    .line 1445
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/instagram/android/creation/b/a;->a(Lcom/instagram/android/creation/b/a;F)F

    .line 1469
    :cond_1
    :goto_0
    return-void

    .line 1449
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {p1}, Ljava/lang/Math;->round(F)I

    move-result v1

    iget-object v2, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v2}, Lcom/instagram/android/creation/b/a;->v(Lcom/instagram/android/creation/b/a;)I

    move-result v2

    invoke-static {v1, v2}, Lcom/instagram/camera/h;->a(II)I

    move-result v1

    invoke-static {v0, v1}, Lcom/instagram/android/creation/b/a;->c(Lcom/instagram/android/creation/b/a;I)I

    .line 1450
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    iget-object v1, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v1}, Lcom/instagram/android/creation/b/a;->v(Lcom/instagram/android/creation/b/a;)I

    move-result v1

    int-to-float v1, v1

    sub-float v1, p1, v1

    invoke-static {v0, v1}, Lcom/instagram/android/creation/b/a;->a(Lcom/instagram/android/creation/b/a;F)F

    .line 1454
    :goto_1
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v0}, Lcom/instagram/android/creation/b/a;->s(Lcom/instagram/android/creation/b/a;)F

    move-result v0

    const/high16 v1, 0x4334

    cmpl-float v0, v0, v1

    if-lez v0, :cond_3

    .line 1455
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v0, v3}, Lcom/instagram/android/creation/b/a;->b(Lcom/instagram/android/creation/b/a;F)F

    goto :goto_1

    .line 1458
    :cond_3
    :goto_2
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v0}, Lcom/instagram/android/creation/b/a;->s(Lcom/instagram/android/creation/b/a;)F

    move-result v0

    const/high16 v1, -0x3ccc

    cmpg-float v0, v0, v1

    if-gez v0, :cond_4

    .line 1459
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v0, v3}, Lcom/instagram/android/creation/b/a;->c(Lcom/instagram/android/creation/b/a;F)F

    goto :goto_2

    .line 1464
    :cond_4
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v0}, Lcom/instagram/android/creation/b/a;->v(Lcom/instagram/android/creation/b/a;)I

    move-result v0

    iget-object v1, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-virtual {v1}, Lcom/instagram/android/creation/b/a;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/camera/h;->a(Landroid/app/Activity;)I

    move-result v1

    add-int/2addr v0, v1

    .line 1465
    iget-object v1, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v1}, Lcom/instagram/android/creation/b/a;->w(Lcom/instagram/android/creation/b/a;)I

    move-result v1

    if-eq v1, v0, :cond_1

    .line 1466
    iget-object v1, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v1, v0}, Lcom/instagram/android/creation/b/a;->d(Lcom/instagram/android/creation/b/a;I)I

    .line 1467
    iget-object v0, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    iget-object v1, p0, Lcom/instagram/android/creation/b/p;->a:Lcom/instagram/android/creation/b/a;

    invoke-static {v1}, Lcom/instagram/android/creation/b/a;->w(Lcom/instagram/android/creation/b/a;)I

    move-result v1

    invoke-static {v0, v1}, Lcom/instagram/android/creation/b/a;->e(Lcom/instagram/android/creation/b/a;I)V

    goto :goto_0
.end method
